package xuegao.study.mall.oauth2.feign;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xuegao.study.mall.common.domain.UserDto;

@FeignClient(contextId = "admin", name = "study-rbac-service", path = "/rbac/admin")
public interface UmsAdminService {

    @ApiOperation("根据用户名获取通用用户信息")
    @GetMapping(value = "/loadByUsername")
    UserDto loadUserByUsername(@RequestParam String username);
}
